From 6dab2f670d4310fcdbadf0f82d502dc125636bff Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Mon, 6 Mar 2006 23:47:53 +0100 Subject: [PATCH] Add next/previous key bindings to XenMon curses mode. Signed-off-by: Diwaker Gupta --- tools/xenmon/xenmon.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/xenmon/xenmon.py b/tools/xenmon/xenmon.py index a95f126a23..366c5638de 100644 --- a/tools/xenmon/xenmon.py +++ b/tools/xenmon/xenmon.py @@ -452,6 +452,12 @@ def show_livestats(): if c == ord('c'): cpu = (cpu + 1) % ncpu + # n/p = cycle to the next/previous CPU + if c == ord('n'): + cpu = (cpu + 1) % ncpu + if c == ord('p'): + cpu = (cpu - 1) % ncpu + stdscr.erase() _c.nocbreak() -- 2.30.2